package com.chance.cc.crawler.development.command.schedule.tianya;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.tianya.realtime.TYBBSRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.tianya.trace.TYBBSTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.schedule.CommonCrawlerJobTestScheduler;

/**
 * @author lt
 * @version 1.0
 * @date 2021-03-24 11:05:23
 * @email okprog@sina.com
 */
public class TYBBSCommonCrawlerScheduler extends CommonCrawlerJobTestScheduler {

    public static void main(String[] args) {
        commonCrawlerScheduleJob(TYBBSRealtimeCrawlerSchedulerJob.crawlerScheduler());
        commonCrawlerScheduleJob(TYBBSTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }
}
